package com.woniuxy.service.Impl;

import com.woniuxy.dao.RoleMenuDao;
import com.woniuxy.entity.RoleMenu;
import com.woniuxy.service.RoleMenuService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description: TODO(用一句话描述这个类的作用)
 * @Author 18452
 * @Date 2021/4/29 23:18
 */
@Service
public class RoleMenuServiceImpl implements RoleMenuService {

    @Resource
    private RoleMenuDao roleMenuDao;

    @Override
    public String updateRoleMenu(RoleMenu roleMenu) {
        int delete = roleMenuDao.delete(roleMenu);
        int insertBatch = roleMenuDao.insertBatch(roleMenu);

        return "success";
    }
}
